<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>单录单的列表界面</title>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
 	<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.3.1.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ainit-1.0.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/perlize.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/save.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/butnScript.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/dataList/element.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/dataList/joinElement.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/dataList/bjContract.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/perJs/threeshen.js"></script> 
    <script type="text/javascript" src="${pageContext.request.contextPath}/pages/commen/approve.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/fxSpecialPage/tBookInfo.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/perJs/threeshen.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/perJs/approveFlow.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/perJs/ysqr.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/perJs/yzclstock.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/perJs/bjxt.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/perJs/cwCost.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/sysRight/sysRight.js"></script>
    
    <!-- 图片上传 -->
    <script  type="text/javascript" src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/js/dropzone.min.js"></script>
	<script  type="text/javascript" src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/mul_imgs.js"></script>
	<link   type="text/css" href="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/css/dropzone.css" rel="stylesheet"/>   
	<link   type="text/css" href="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/css/basic.css" rel="stylesheet" />
  
    <!--右键菜单-->
    <link   type="text/css" href="${pageContext.request.contextPath}/css/contextmenu/contextmenu.css" rel="stylesheet">
	<script type="text/javascript" src="${pageContext.request.contextPath}/model/js/contextmenu.js" ></script>
  
	<script type="text/javascript">
		//butnList   colId  type  jsUrl   panelTitle  prefix 
		$(function(){
			//初始化列表界面，多条件查询界面,常用条件查询界面   
			initSQuery("DATALIST;QUERYCLN;commUse",'${m.prefix}');
			var height = parseInt(document.documentElement.clientHeight)*0.97;
          	$("body").height(height);
		});
	</script>
	
		  <!-- web打印 -->
	  <script language="javascript" src="${pageContext.request.contextPath}/ainitweb/plugins/webprint/LodopFuncs.js"></script>
	  <object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
      	<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
	  </object>
</head>
<body onresize="resizeGrid();" style="width: 100%">
	<div id="${m.prefix}_S_QUERY" style="height: 99%;overflow-x:hide;overflow-y:auto;width:100%;">
		<div id='${m.prefix}_parentTabPanel' >
			<div  style="width: 98%;" >
				<table cellpadding="0" cellspacing="0" align="center" style="width:98%;table-layout:fixed;">
					<tr>
						<td  align="left" style="width: 65%;font-size: 12px;;" >
							<div id="${m.prefix}_useCon" pre='${m.prefix}'>
								<!-- 常用条件查询 -->  
								<table class='tableBord'  id="${m.prefix}_commUse"  style="float: left" ></table>
					          	 <!--显示多条件查询的checkbox  -->
					          	 <span style="margin-left:15px;">
									<input type="checkbox"   id='queryCB' onclick="showQuery(this,'${m.prefix}_QueryList','${m.prefix}_config',1)"/>
									<span style="cursor: pointer;"  onclick="showQuerySpan(this,'${m.prefix}_QueryList','${m.prefix}_config',1)">更多条件</span>
								 </span>
					        </div>
						</td>
						<!-- 按钮展示-->
						<td align="right" style="vertical-align: top;width: 40%;"  >
							<div  id="${m.prefix}_queryButn" >
								<c:forEach items="${m.butnList}" var="butp">
									<!-- 分组的按钮 -->
									<c:if test="${not empty butp.IS_GROUP && butp.IS_GROUP =='T'}">  
										<a href="javascript:void(0)" id="mb2" plain="false" isbutn="true"  code='${m.prefix}_${butp.BUT_CODE}' menu="#${butp.GROUP_ID}" class="easyui-menubutton" iconCls="${butp.iconCls}">${butp.BUTN_NAME}</a>
										<div id="${butp.GROUP_ID}"  style="width: 100px;">
											<c:forEach items="${m.butnList}" var="butnp">
												<c:if test="${butnp.IS_GROUP != 'T' && not empty butnp.GROUP_ID  && butnp.GROUP_ID==butp.GROUP_ID}">
													<c:if test="${empty butnp.SCRIPT_FUNC}">
											   			<div  iconCls="${butnp.iconCls}" isbutn="true" code='${m.prefix}_${butnp.BUT_CODE}'   pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1'  oflag="1" sflag="s" >${butnp.BUTN_NAME}</div> 
											   		</c:if>
											   		<c:if test="${not empty butnp.SCRIPT_FUNC}">
												   		<div onclick="${butnp.SCRIPT_FUNC}"  isbutn="true" iconCls="${butnp.iconCls}" code='${m.prefix}_${butnp.BUT_CODE}'   pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1'  oflag="1" sflag="s"  >${butnp.BUTN_NAME}</div>  
											   		</c:if>
												</c:if>
											</c:forEach>
										</div>
									</c:if>
									<!-- 非分组按钮 -->
									<c:if test="${empty butp.IS_GROUP && empty butp.GROUP_ID}">
										<c:if test="${empty butp.SCRIPT_FUNC}">
											<a class='easyui-linkbutton'  iconCls="${butp.ICONCLS}" isbutn="true"  id="${m.prefix}_${butp.BUT_CODE}"   oflag="1" sflag="s"  code='${m.prefix}_${butp.BUT_CODE}'  pre='${m.prefix}' dsid='${m.dsId}' flag='1'  >${butp.BUTN_NAME}</a>
										</c:if>
										<c:if test="${not empty butp.SCRIPT_FUNC}">
											<a class='easyui-linkbutton' iconCls="${butp.ICONCLS}" isbutn="true" id="${m.prefix}_${butp.BUT_CODE}" onclick="${butp.SCRIPT_FUNC}"  oflag="1" sflag="s"  code='${m.prefix}_${butp.BUT_CODE}'  pre='${m.prefix}' dsid='${m.dsId}' flag='1' >${butp.BUTN_NAME}</a>
										</c:if>
									</c:if>
								</c:forEach>
							</div> 
						</td>
					</tr>
			    </table>
			</div>
			<div id="${m.prefix}_costTabPanel"  style="width: 98%;" >  
		        <div  id="${m.prefix}_QueryList" style="width:98%;">  <!--需要修改的地方-->
					<table cellpadding="0" width="98%" height="80%"  cellspacing="0" >
						<tr>
							<td style="padding-top:10px;">
								<table id="${m.prefix}_DATALIST" 	realdsid="${fn:split(m.dsId,';')[0]}"  ></table>
							</td>
						</tr>
						<tr>
							<td style="width: 100%">
								<div id='${m.prefix}_congfigVal'  style="border:1px solid #99BBE8;font-size:14px;color: green;width:100%;height: 30px;margin-top:5px;"></div>
							</td>
						</tr>
					</table>
		        </div>  
		        <div id="${m.prefix}_config" style="display: none;" pre='${m.prefix}'>  
					<table cellpadding="0" cellspacing="0" style="width: 100%;padding:20px;">
						<tr>
							<td style="padding-top: 10px;">
								<!-- 查询条件 	-->
								<table class='tableBord' id="${m.prefix}_QUERYCLN"></table>
							</td>
						</tr>
					</table>
		        </div>  
		    </div>
		</div>
		<input type="hidden" id='${m.prefix}_sq_pks'/>
		<input type="hidden" id="${m.prefix}_dsId" value="${m.dsId}"/>
		<input type="hidden" id="${m.prefix}_type" value="${m.type}"/>
		<input type="hidden" id="${m.prefix}_jsUrl" value="${m.jsUrl}"/>
		<input type="hidden" id="${m.prefix}_prefix" value="${m.prefix}"/>
		<input type="hidden" id="${m.prefix}_initFunc" value="${m.initFunc}"/>
		<input type="hidden" id="${m.prefix}_ainitFunc" value="${m.ainitFunc}"/>
		<input type="hidden" id="${m.prefix}_keyValue" value="${m.keyValues}"/>
		<input type="hidden" id="${m.prefix}_choice" value="${m.choice}"/>
		<input type="hidden" id="${m.prefix}_aoru" value="${m.aoru}"/>
		<input type="hidden" id="${m.prefix}_pks" value="${m.pks}"/>
		<input type="hidden" id="${m.prefix}_winitFunc" value="${m.winitFunc}"/>
		<input type="hidden" id="${m.prefix}_wainitFunc" value="${m.wainitFunc}"/>
		<input type="hidden" id="${m.prefix}_totalFlag" value="${m.totalFlag}"/>
		<input type="hidden" id="${m.prefix}_menuId" value="${m.menuId}"/>   <!-- 子系统的Id -->
		<input type="hidden" id="${m.prefix}_funcId" value="${m.funcId}"/>   <!-- 模块的Id -->
		<div id='imagePage'  title="图片空间" style="width:700px; height:600px;" left="0" top="0" closed="true" class="easyui-window">
			<input type="hidden" id='imgClnName'>
			<div id="imgsCont"></div>
		</div>
	</div>
</body>
</html>